using System;
using System.Collections.Generic;
using System.Text;
using BusinessObjects.BO_Actions;
using Entity.StoreProcedure;
using BusinessObjects;
using System.Data;
namespace BusinessObjects.BO_GetObjects {
	public static class BO_portal_sms_cmd_services {
		public static DataTable SelectAll() {
			try {
				usp_portal_sms_cmd_services_select_all entity = new usp_portal_sms_cmd_services_select_all();

				return BO_Actions<usp_portal_sms_cmd_services_select_all>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static DataTable SelectTop(int rows) {
			try {
				usp_portal_sms_cmd_services_select_top entity = new usp_portal_sms_cmd_services_select_top();
				entity.NUMBERRECORD = rows;

				return BO_Actions<usp_portal_sms_cmd_services_select_top>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static string Insert( int cmd_code_id, int service_id) {
			try {
				usp_portal_sms_cmd_services_insert entity = new usp_portal_sms_cmd_services_insert();
                entity.CMD_CODE_ID = cmd_code_id;
                entity.SERVICE_ID = service_id;

				return BO_Actions<usp_portal_sms_cmd_services_insert>.ExecuteAndReturnStringValue(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
	}
}

